package com.ruoyi.community.domain.integral;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户积分信息对象 int_user_statistic
 * 
 * @author ruoyi
 * @date 2021-08-08
 */
public class IntUserStatistic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** 在哪个社区 */
    @Excel(name = "在哪个社区")
    private Integer communityId;

    /** 现有积分数 */
    @Excel(name = "现有积分数")
    private Integer possess;

    /** 历史总数 */
    @Excel(name = "历史总数")
    private Integer total;

    /** 历史消耗 */
    @Excel(name = "历史消耗")
    private Integer consume;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String nickName;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCommunityId(Integer communityId) 
    {
        this.communityId = communityId;
    }

    public Integer getCommunityId() 
    {
        return communityId;
    }
    public void setPossess(Integer possess) 
    {
        this.possess = possess;
    }

    public Integer getPossess() 
    {
        return possess;
    }
    public void setTotal(Integer total) 
    {
        this.total = total;
    }

    public Integer getTotal() 
    {
        return total;
    }
    public void setConsume(Integer consume) 
    {
        this.consume = consume;
    }

    public Integer getConsume() 
    {
        return consume;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("communityId", getCommunityId())
            .append("possess", getPossess())
            .append("total", getTotal())
            .append("consume", getConsume())
            .toString();
    }
}
